<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class admin_model extends model {
	public function __construct() {
		$this->db_config = pc_base::load_config('database');
		$this->db_setting = 'default';
		$this->table_name = 'admin';
		parent::__construct();
	}

	/**
     * 获取管理员真实姓名数据
     */
    public function getRealnameInfo () {
    	$data = array();
    	$list = $this->select();
    	foreach ($list as $v) {
    		$data[$v['userid']] = $v['realname'];
    	}
    	return $data;
    }
}
?>